package com.gutai.admin.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.gutai.admin.common.entity.dto.OrderRequestParamsDto;
import com.gutai.admin.entity.Order;
import com.gutai.admin.entity.OrderExpress;
import com.gutai.admin.entity.OrderGoods;

/**
 * 
 * 
 * 
 * <pre>
 * HISTORY
 * ****************************************************************************
 *  ID    DATE            PERSON            REASON
 *  1     2019年1月29日         la.01367604           Create
 * ****************************************************************************
 * </pre>
 * 
 * @author la.01367604
 * @version 1.0
 */
public interface IOrderService {

    public List<Order> getAll();

    public Page<Order> getList(int startPage, int pageSize);

    public Page<Order> getList(OrderRequestParamsDto paramsDto);

    public void add(Order entity);

    public void update(Order entity);

    public Order findById(int id);

    public void delete(int id);

    public List<OrderExpress> getOrderExpressList();

    public Page<OrderExpress> getOrderExpressList(int startPage, int pageSize);

    public void addOrderExpress(OrderExpress entity);

    public void updateOrderExpress(OrderExpress entity);

    public OrderExpress findOrderExpressById(int id);

    public void deleteOrderExpress(int id);

    public List<OrderExpress> findOrderExpressByOrderId(int orderId);

    List<OrderGoods> getOrderGoodsList();

    void addOrderGoods(OrderGoods entity);

    void updateOrderGoods(OrderGoods entity);

    OrderGoods findOrderGoodsById(int id);

    List<OrderGoods> findOrderGoodsByOrderId(int orderId);

    void deleteOrderGoods(int id);

}
